package com.hbxz.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author yhb
 * @date 2021/6/7
 */
@Slf4j
@RestController
@RequestMapping("/credit")
public class CreditController {

    @GetMapping("/add")
    private String addCredit(HttpServletRequest request){
     log.info("积分服务{} ----- 加积分{}",request.getRequestURI(),1);
     return "积分+1";
    }
}
